home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / sp144man.zip / APA.TXT next >
Text File  |  1993-04-19  |  13KB  |  343 lines

  1.                          APPENDIX A.  ERROR/FLOW CONTROL CONCEPTS
  2.                                                                  
  3.       
  4.       This appendix includes detailed
  5.       information on how Sportster 14,400
  6.       modems use error control and,
  7.       especially useful, some statistics and
  8.       guidelines on using the modem for the
  9.       best throughput.
  10.       
  11. ERROR CONTROL AND THROUGHPUT OVERVIEW
  12.  
  13.       Error control protects the integrity of
  14.       data transferred over phone channels and
  15.       is available for calls at 1200 bps and
  16.       above.  It can be disabled, although
  17.       high speed calls (above 2400 bps) should
  18.       always be under error control.  The
  19.       operations defined in an error-control
  20.       protocol include the following.
  21.          ∙ Establishment of compatibility
  22.          ∙ Data formatting into blocks or
  23.            (MNP) frames
  24.          ∙ Error detection through Cyclic
  25.            Redundancy Checking (CRC)
  26.          ∙ Positive acknowledgment of error-
  27.            free blocks and negative
  28.            acknowledgment of corrupted data
  29.            blocks
  30.          ∙ Retransmission of corrupted data
  31.            blocks
  32.       The Sportster 14,400 is set at the
  33.       factory to &M4, causing it to try for
  34.       an error-control connection and, if
  35.       that isn't possible, to proceed with
  36.       the call in Normal mode.  The modem
  37.       first tries for a V.42 connection, then
  38.       an MNP connection.  The following infor
  39.       mation is based on the Sportster
  40.       14,400's setting of &M4.
  41.       
  42. CCITT V.42 HANDSHAKING
  43.  
  44.       The exchange of signals between two
  45.       devices in order to establish a
  46.       communications link is called
  47.       handshaking.  CCITT V.42 includes a two-
  48.       stage handshaking process.
  49.          ∙ A Detection phase that is based on
  50.            an exchange of predefined
  51.            characters.
  52.          ∙ LAPM (Link Access Procedures for
  53.            Modems) Negotiation.  In this
  54.            phase, the modems identify their
  55.            capabilities concerning maximum
  56.            data block size and the number of
  57.            outstanding data blocks allowed
  58.            before an acknowledgment is
  59.            required.
  60.            
  61. MNP HANDSHAKING
  62.  
  63.       This protocol is supported by the CCITT
  64.       V.42 Recommendation.  It was originally
  65.       developed by Microcom, Inc., and is now
  66.       in the public domain.
  67.       MNP handshaking begins with an MNP Link
  68.       Request sent by the calling modem.  If
  69.       the remote modem doesn't recognize the
  70.       request, error control isn't possible.
  71.       
  72. DATA COMPRESSION
  73.  
  74.       If the modems successfully establish a
  75.       V.42 connection, they also negotiate for
  76.       V.42 bis data compression.  If they
  77.       successfully establish an MNP
  78.       connection, they negotiate for MNP5 data
  79.       compression.
  80.       Modems using V.42 bis compression
  81.       negotiate the following options.
  82.          ∙ Dictionary size, that is, the
  83.            amount of memory available for
  84.            compression table entries.
  85.            (Entries are codes devised for
  86.            redundant data.  The data is packed
  87.            into shorter data units, called
  88.            code words, and unpacked by the
  89.            receiving modem.)
  90.            Possible sizes are as follows.
  91.            USRobotics modems use 11-bit, or
  92.            2048-entry dictionaries, but drop
  93.            down if the remote modem uses a 512-
  94.            or 1024-entry dictionary.
  95.            BitsEntries
  96.            9    512
  97.            10  1024
  98.            11  2048
  99.          ∙ Maximum string length of each
  100.            entry.  As the dictionary fills,
  101.            the modem deletes the oldest unused
  102.            strings.
  103.       V.42 bis compression is more efficient
  104.       than MNP5 compression in part because it
  105.       dynamically deletes unusable strings.
  106.       In addition, it works better with files
  107.       that are already compressed.  These
  108.       include already compressed files, such
  109.       as the .ZIP files downloaded from many
  110.       Bulletin Boards, and 8-bit binary files,
  111.       which appear to the modem to be
  112.       compressed.
  113.       MNP5 compression should not be used
  114.       with such files because it adds data to
  115.       them, which lessens throughput.  (The
  116.       additional data is stripped when the
  117.       file is decompressed by the remote
  118.       modem.)  When transferring such files,
  119.       it's best to set the modem to &K3:
  120.       this allows V.42 bis compression to
  121.       work dynamically with the compressed
  122.       data, but disables MNP5.
  123.       
  124. FLOW CONTROL
  125.  
  126.       Flow control of data from the computer
  127.       or terminal is required under error
  128.       control for two reasons.
  129.       1.The transmitting modem buffers a copy
  130.          of each frame it transmits to the
  131.          remote end until it is acknowledged
  132.          by the receiving modem.
  133.       2.If errors are encountered, the
  134.          transmitting modem must resend the
  135.          corrupted data.  This retransmission
  136.          activity, combined with the steady
  137.          stream of data from the computer or
  138.          terminal, can overflow the buffer.
  139.          
  140. THROUGHPUT GUIDELINES
  141.  
  142.       The following guidelines should help to
  143.       make the most of the modem's advanced
  144.       performance features.  In many
  145.       instances, experimentation and
  146.       experience will indicate what works best
  147.       for your applications.
  148.       1.Optimal throughput is attained under
  149.          the following conditions.
  150.          ∙ The communications software allows
  151.            fixing the serial port rate higher
  152.            than the connection rate, for
  153.            example, setting the software to
  154.            38.4K bps and setting the modem to
  155.            &B1.
  156.            If the software automatically
  157.            switches bit rates to follow the
  158.            connection rate, the modem's serial
  159.            port rate also must be set to
  160.            follow the connection rate for each
  161.            call, &B0, and throughput will be
  162.            limited.
  163.          ∙ The call is under data compression.
  164.          ∙ The data is comprised of text files
  165.            rather than binary files such as
  166.            .EXE or .COM files.  See the table
  167.            at the end of this appendix.
  168.       2.Disable MNP5 compression for files
  169.          that are already compressed, or 8-bit
  170.          binary files, which appear to the mo
  171.          dem to be already compressed.  Set
  172.          the modem to &K3, which disables MNP5
  173.          and leaves V.42 bis compression
  174.          enabled.
  175.       3.Many non-text files require a file-
  176.          transfer protocol.  The file transfer
  177.          may be slowed down by a file-transfer
  178.          protocol, but the results vary.  For
  179.          example, certain public domain file-
  180.          transfer protocols have the following
  181.          effects.
  182.          KermitWith the basic Kermit,
  183.                 throughput is severely reduced
  184.                 due to short block lengths
  185.                 (under 128 bytes) and
  186.                 acknowledgment turnaround
  187.                 time.  Later enhancements to
  188.                 Kermit permit larger data-
  189.                 block lengths.
  190.          XmodemThroughput may be reduced if
  191.                 your version uses short block
  192.                 lengths, for example, 128
  193.                 bytes.  Some versions use
  194.                 blocks of 1 Kbyte, which is
  195.                 much better, although overhead
  196.                 (error-control protocol
  197.                 information) still affects
  198.                 overall throughput.
  199.          YmodemThis protocol is similar to
  200.                 Xmodem with 1-Kbyte block
  201.                 lengths, and allows multiple
  202.                 files to be sent in one
  203.                 transfer.
  204.          These file-transfer protocols further
  205.          reduce throughput when an error-
  206.          control connection is established.
  207.          The accuracy of the data is checked
  208.          twice, by the file-transfer protocol
  209.          and the modem.  To avoid redundancy,
  210.          use these protocols only for non-ARQ
  211.          connections.
  212.          For better throughput, we recommend
  213.          Ymodem-G, with the modem left at its
  214.          error-control default, &M4.  Ymodem-G
  215.          assumes the modems are handling error
  216.          control:  overhead is minimal, with
  217.          throughput almost equal to that
  218.          obtained with no file-transfer
  219.          protocol.  However, keep in mind that
  220.          Ymodem-G is only useful if the modems
  221.          are using error control.  In
  222.          addition, follow this recommendation
  223.          only if your machine and software
  224.          support hardware flow control.
  225.          On the other hand, the most current
  226.          version of Zmodem can yield even
  227.          greater efficiency.  Leave the modem
  228.          at its error-control default (&M4)
  229.          and data compression default, &K1.
  230.          Zmodem performs the same kind of com
  231.          pression as V.42 bis; it turns off
  232.          its compression if files are already
  233.          compressed.
  234. ONLINE FALLBACK/FALL FORWARD
  235.  
  236.       Under error control, if a disturbance on
  237.       the phone line causes an error to a data
  238.       block, the receiving modem replies with
  239.       a negative acknowledgment.  In response,
  240.       the transmitting modem retrieves a copy
  241.       of the original data block from its
  242.       Transmit buffer, and every block it sent
  243.       after that block, and retransmits them.
  244.       This keeps the data error-free and in
  245.       sequence.
  246.       However, there is a retransmit limit:
  247.       the modems hang up if line disturbances
  248.       are so severe that one of the modems has
  249.       retransmitted the same block of data
  250.       twelve times without a positive
  251.       acknowledgment.
  252.       High-speed calls are more vulnerable
  253.       than transmission at 2400 bps and
  254.       below.  In order to keep V.32 bis
  255.       modems online above 2400 bps, instead
  256.       of reaching the retransmit limit and
  257.       hanging up, one of the modems requests
  258.       that they fall back, that is, that they
  259.       reduce their rate from 14.4K to 12K
  260.       bps, and then to 9600 bps or lower, if
  261.       necessary.  When online conditions
  262.       improve, the modems fall forward to the
  263.       next higher speed, up to the link rate
  264.       of the call.
  265.       
  266. ACHIEVABLE THROUGHPUT STATISTICS
  267.  
  268.       The table below indicates the maximum
  269.       throughput, in characters per second
  270.       (cps), that can be expected under the
  271.       following optimal conditions.
  272.          ∙ Serial port rate set at 57.6K bps;
  273.            modem set to &B1
  274.           (Note that both your software and
  275.            your computer must support 57.6K
  276.            bps in order for you to use that
  277.            rate)
  278.          ∙ Connection (link) rate of 14.4K bps
  279.            (assuming no protective fallback to
  280.            a lower speed is necessary)
  281.          ∙ V.42 bis compression negotiated for
  282.            the call, and the default size 11-
  283.            bit, 2048-entry dictionary
  284.          ∙ Straight data (that is, not already
  285.            compressed, no file-transfer
  286.            protocol)
  287.          ∙ Transmission from a fast (for
  288.            example, 286) computer
  289.            
  290.                        Throughput (cps) when
  291.       set to 14.4K bps
  292.       File Type        MNP5       V.42 bis
  293.       Assembler or Compiler listing 2880
  294.       3840
  295.       Text file        2325-2625  3400-5760
  296.       Binary file:  .EXE          2175-2400
  297.       2030-2600
  298.       Binary file:  .COM          2100-2250
  299.       2050-2300
  300.       .ZIP files (common on BBS's)* 1500-1650
  301.       1700
  302.       Random binary 8-bit*        1460-1575
  303.       1700
  304.       * These files are already compressed
  305.       or appear to the modem to be com
  306.       pressed.  Additional MNP5 compres
  307.       sion causes throughput lower than
  308.       what can be expected using MNP
  309.       without compression.  We recommend
  310.       setting the modem to &K3 when
  311.       transferring these files, to allow
  312.       V.42 bis but disable MNP5.
  313.       
  314.       The following table indicates the
  315.       maximum throughput, in characters
  316.       per second (cps), that can normally
  317.       be expected
  318.       in the same conditions as the
  319.       previous table , but with a serial
  320.       port rate of 38.4K bps.
  321.       
  322.                        Throughput (cps) when
  323.       set to 14.4K bps
  324.       File Type        MNP5       V.42 bis
  325.       Assembler or Compiler listing 2880
  326.       3840
  327.       Text file        2325-2625  3400-3480
  328.       Binary file:  .EXE          2175-2400
  329.       2030-2600
  330.       Binary file:  .COM          2100-2250
  331.       2050-2300
  332.       .ZIP files (common on BBS's)* 1500-1650
  333.       1700
  334.       Random binary 8-bit*        1460-1575
  335.       1700
  336.       
  337.       *We recommend setting the modem to &K3
  338.       when transferring these types of files.
  339.       See the note attached to the previous
  340.       table.
  341.       
  342.  
  343.